import prodConfig from '@/config/prod-config';
import devConfig from '@/config/dev-config';

let config = {}; // 公共配置

function loadConfig() {
  switch (process.env.NODE_ENV) {
    case 'production':
      config = { ...config, ...prodConfig };
      break;
    default:
      config = { ...config, ...devConfig };
  }
  return config;
}
export default loadConfig();
